package com.datang.pet.api.userController;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-06-18 09:35
 * @notify
 * @version 1.0
 */

import com.datang.pet.common.response.Result;
import com.datang.pet.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetAllMessageController {

    @Autowired
    private MessageService messageService;


    @GetMapping("/getAllMessage")
    public Result getAllMessage(String userId){
        messageService.getMessage(userId, "2");
        messageService.getMessage(userId, "3");
        messageService.getMessage(userId, "4");

        return Result.ok("ok");
    }
}
